package com.bobo.utis;

import java.net.URLEncoder;

/**
 * @ClassName:
 * @Description: 用来支持第三方登录（gitee登录）
 * @Author:bobo
 * @Date:2021/12/27 19:24
 */
public class GitUtil {
    //gitid
    public static final String clientId="d49bc833f5f8123de173f00b787abbd1cf25d32006dd1306581e0a1a7d972cba";
 //  public static final String rollBackUrl="http://localhost:8080/auth";//和gitee的应用回调地址对应
    //rollBackUrl 回调地址
    public  static String getUrl(String rollBackUrl){
        String url = "https://gitee.com/oauth/authorize?response_type=code" +
                "&client_id=" + clientId +
                "&redirect_uri=" + URLEncoder.encode(rollBackUrl) ;
        return url;
    }
}
